package org.tigr.htc.cmd;

/*
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

import java.util.Date;

import org.tigr.antware.shared.command.events.FailureEvent;

 /**
  * The class <code>TkFailureEvent</code> models a failure event.
  * 
  */

public class TkFailureEvent extends FailureEvent {

	private static final long serialVersionUID = 1555437938957899511L;
	protected int index;
    
    /**
     * The constructor <code>TkFailureEvent</code> creates a new instance
     */
    public TkFailureEvent() {
        super();
    }

    /*
     * Creates a new <code>CommandEvent</code> instance.
     * 
     * @param p_source 
     * @param p_commandID
     * @param p_date
     * @param p_message
     * @param p_failure
     */
    public TkFailureEvent(Object p_source, long p_commandID,
        Date p_date, String p_message, Throwable p_failure, int p_index) {
        super(p_source, p_commandID, p_date, p_message, p_failure);
        index = p_index;
    }

    public int getIndex() {
        return index;
    }


    public void setIndex(int p_index) {
        index = p_index;
    }
}
